﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="NewStockUser.aspx.cs" Inherits="SMS.StockUsers.NewStockUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserHeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Add Item.png" class="img" />
            إضافة مدير / عامل في المحل</h2>
        <div dir="rtl" class="content">
            <table dir="rtl">
                <tr>
                    <td>
                        <asp:Label ID="Label2" Text="اسم المحل" runat="server" />
                    </td>
                    <td>
                        <asp:DropDownList ID="drpStocks" Width="100%" AutoPostBack="true" runat="server"
                            OnSelectedIndexChanged="drpStocks_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <ajax:Accordion ID="MyAccordion" runat="Server" SelectedIndex="0" HeaderCssClass="accordionHeader"
                ContentCssClass="accordionContent" Width="100%" AutoSize="None" FadeTransitions="true"
                TransitionDuration="250" FramesPerSecond="40" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
                <Panes>
                    <ajax:AccordionPane ID="AccordionPane1" runat="server">
                        <Header>
                            <img src="../App_Themes/Theme/images/Admin.png" class="AccordionHeaderImage" />المديرين
                        </Header>
                        <Content>
                            <table dir="rtl">
                                <tr>
                                    <td colspan="2">
                                        <asp:Label Text="المدير:" runat="server" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="drpAdmins" AppendDataBoundItems="true" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:Button ID="btnAdminSave" CssClass="checkoutbutton" Text="حفظ" runat="server"
                                            OnClick="btnAdminSave_Click" />
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ajax:AccordionPane>
                    <ajax:AccordionPane ID="AccordionPane2" runat="server">
                        <Header>
                            <img src="../App_Themes/Theme/images/Worker.png" class="AccordionHeaderImage" />العمال
                        </Header>
                        <Content>
                            <table dir="rtl">
                                <tr>
                                    <td colspan="2">
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:ListBox ID="lstALlWorkers" runat="server"></asp:ListBox>
                                                </td>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td align="center">
                                                                <asp:ImageButton ID="BtnAdd" Width="20px" Height="20px" ImageUrl="~/App_Themes/Theme/images/Left Arrow.png"
                                                                    runat="server" OnClick="BtnAdd_Click" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center">
                                                                <asp:ImageButton ID="btnDelete" Width="20px" Height="20px" ImageUrl="~/App_Themes/Theme/images/right_arrow.png"
                                                                    runat="server" OnClick="btnDelete_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <asp:ListBox ID="lstStockWorkers" runat="server"></asp:ListBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">
                                        <asp:Button ID="btnSave" CssClass="checkoutbutton" Text="حفظ" runat="server" OnClick="btnSave_Click" />
                                    </td>
                                </tr>
                            </table>
                        </Content>
                    </ajax:AccordionPane>
                </Panes>
            </ajax:Accordion>
        </div>
    </div>
</asp:Content>
